import li.dao.Hello;
import li.config.Config;
import li.dao.People;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;


public class Mytest {

    public static void main(String[] args) {

        ApplicationContext context =new AnnotationConfigApplicationContext(Config.class);
        Hello hello=context.getBean(Hello.class);
        hello.show();
        People people=context.getBean(People.class);
        people.show();
    }
}
